//
//  AnoleH5ViewController.h
//  AnoleSDK
//
//  Created by mac on 2022/7/14.
//

#import <UIKit/UIKit.h>
#import "AnoleJSAPI.h"
#import "AnoleH5Configure.h"

NS_ASSUME_NONNULL_BEGIN

@interface AnoleH5ViewController : UIViewController<AnoleH5ContainerProtocol>

@property (readonly) WKWebView *webView;

//导航栏背景颜色，设置导航文字请利用title
@property (nonatomic, strong) UIColor *navigationBarBackgroundColor;
//导航栏文字颜色
@property (nonatomic, strong) UIColor *navigationBarTextColor;
//设置导航栏中间图片
@property (nonatomic, strong) UIImage *titleImage;
@property (nonatomic, readonly) AnoleH5Configure *h5Config;



//指定的初始化方法,加载网络URL用这个
+(instancetype) viewControllerWithRemoteURL:(NSURL *)h5URL config:(AnoleH5Configure *)config;

//加载本地url，路径在config中指定
+(instancetype) viewControllerWithLocalH5Config:(AnoleH5Configure *)config;

//注册JSAPI
-(void) registerJSApi:(AnoleJSAPI *)jsAPI;

/**
 开启progress
 */
- (void)showProgressWithMessage:(NSString *)message;

/**
 隐藏progress
 */
- (void)hiddenProgress;

@end

NS_ASSUME_NONNULL_END
